<!DOCTYPE html>
<html lang="en" xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org" xmlns:sec="http://www.thymeleaf.org/thymeleaf-extras-springsecurity3">
<head>
    <meta charset="UTF-8" />
    <title>Title</title>

    <script src="http://cdn.static.runoob.com/libs/jquery/1.10.2/jquery.min.js"></script>
</head>
<body>
    <div>
        <!--<form>-->
            <!--<input type="submit" value="submit"/>-->
            <!--<input type="text" value="1-tom-12" name="">-->
        <!--</form>-->
        <input type="button" value="request" onclick="req();"/>

        <!--<p>点击 <a th:href="@{/convert}">这里</a> 打个招呼吧</p>-->
    </div>
    <script>
        function req() {
            $.ajax({
                url:"http://localhost:8088/convert",
                data:"1-tom-12",
                type:"POST",
                contentType:"application/x-wisely",
                success:function (data) {
                    alert(data);
                }
            });
        }

    </script>
</body>
</html>